package session

import (
	"babyplan/service/jwt"
)

type Session struct {
	token  string
	claims *jwt.Claims
}

func (this *Session) GetToken() string {
	return this.token
}

func (this *Session) GetAid() string {
	return this.claims.Subject
}

func (this *Session) GetRegisterTime() int64 {
	return this.claims.RegisterTime
}
